package com.rui.cn.provider.service.system;


import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.baomidou.mybatisplus.service.IService;
import com.rui.cn.entity.system.SysPermission;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhang123
 * @since 2018-01-15
 */
public interface SysPermissionService extends IService<SysPermission>{
    List<SysPermission> loadUserPermission(Integer id);

    List<SysPermission> permissionList(Pagination pagination, String search, String sortBy, String order);

    List<SysPermission> getRolePermiss(Integer roleid);

    SysPermission getPermissionInfo(Integer id);

    boolean MyinsertOrUpdate(SysPermission permission);
}
